package ATM.bean;

import java.time.LocalDate;

public class RecordBean {
    private Integer id;
    private LocalDate date = LocalDate.now();
    private String description;
    private Integer yue;
    private String username;

    public RecordBean() {
    }

    public RecordBean(LocalDate date, String description, Integer yue) {
        this.date = date;
        this.description = description;
        this.yue = yue;
    }

    public RecordBean(LocalDate date, String description, Integer yue, String username) {
        this.date = date;
        this.description = description;
        this.yue = yue;
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getYue() {
        return yue;
    }

    public void setYue(Integer yue) {
        this.yue = yue;
    }

    @Override
    public String toString() {
        return "RecordBean{" +
                "id=" + id +
                ", date=" + date +
                ", description='" + description + '\'' +
                ", yue=" + yue +
                ", username='" + username + '\'' +
                '}';
    }
}
